package com.heima.lock.sjms.工厂模式.手写ioc;

/**
 * @author 陈辉
 * @data 2024 14:41
 */

public class Demo {
    public static void main(String[] args) {
        Student stu = (Student) BeanFactory.getBean("Student");
        System.out.println("stu = " + stu);

        Teacher teacher = (Teacher) BeanFactory.getBean("Teacher");
        System.out.println("teacher = " + teacher);
    }
}
